package com.hyperboost.service.impl;

import com.hyperboost.entity.OpportunityCategory;
import com.hyperboost.mapper.OpportunityCategoryMapper;
import com.hyperboost.service.OpportunityCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OpportunityCategoryServiceImpl implements OpportunityCategoryService {

    @Autowired
    private OpportunityCategoryMapper opportunityCategoryMapper;

    /**
     * 获取所有机会分类列表
     *
     * @return 分类列表集合
     */
    @Override
    public List<OpportunityCategory> list() {
        return opportunityCategoryMapper.selectAllCategories();
    }
}
